package com.spj.pojo;

import java.util.List;

public class BeanPage<T> {
	private int currentPage;
	private int pageSize;
	private int pages;
	private int count;
	private List<T> list;

	public BeanPage() {

	}

	public BeanPage(int currentPage, int pageSize, int pages, int count, List<T> list) {
		super();
		this.currentPage = currentPage;
		this.pageSize = pageSize;
		this.pages = pages;
		this.count = count;
		this.list = list;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return "BeanPage [currentPage=" + currentPage + ", pageSize=" + pageSize + ", pages=" + pages + ", count="
				+ count + ", list=" + list + "]";
	}

}
